using Castle.MonoRail.TestSupport;
using DocumentaWeb.Controllers;
using MbUnit.Framework;
namespace DocumentaWeb.Tests.Unit.Controllers
{
	[TestFixture, FixtureCategory("Controladores")]
	public class HomeControllerTestFixture:BaseControllerTest
	{
		private HomeController controller;
		[SetUp]
		public void SetUp()
		{
			controller = new HomeController();	
			PrepareController(controller, "Home");
		}

		[Test]
		public void Index_Should_Draw_HomePage()
		{
			controller.Index();
			Assert.AreEqual(controller.SelectedViewName, @"Home\index", "la vista dibujada no es la correcta");
		}
	}
}